package com.woniuxy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value="处方流转订单")
public class PrescriptionOrder {
    @ApiModelProperty(value = "订单id")
    private int id;
    @ApiModelProperty(value = "处方id")
    private int pid;
    @ApiModelProperty(value = "医生id")
    private int doctor_id;
    @ApiModelProperty(value = "患者id")
    private int user_id;
    @ApiModelProperty(value = "订单编号")
    private String order_num;
    @ApiModelProperty(value = "处方编号")
    private String prescription_num;
    @ApiModelProperty(value = "患者")
    private String patient;
    @ApiModelProperty(value = "科室")
    private String department;
    @ApiModelProperty(value = "医生")
    private String doctor;
    @ApiModelProperty(value = "费用")
    private BigDecimal cost;
    @ApiModelProperty(value = "订单状态")
    private int order_status;
    @ApiModelProperty(value = "处方状态")
    private int prescription_status;
    @ApiModelProperty(value = "购药方式")
    private String purchase_method;
    @ApiModelProperty(value = "发药状态")
    private int dispensing_status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开始时间")
    private String  starttime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "结束时间")
    private String endtime;
    @ApiModelProperty(value = "备注")
    private String comment;
}
